/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import java.io.Serializable;

/**
 *
 * @author phuc
 */
public class BangGia implements Serializable {
    private static final long serialVersionUID = 1L;
    private Long bangGiaID;
    private long giaTien;
    private Tau tauID;
    private Ghe gheId;
    private Ga gaDen;
    private Ga gaDi;

    public BangGia() {
    }

    public BangGia(Long bangGiaID) {
        this.bangGiaID = bangGiaID;
    }

    public BangGia(Long bangGiaID, long giaTien) {
        this.bangGiaID = bangGiaID;
        this.giaTien = giaTien;
    }

    public Long getBangGiaID() {
        return bangGiaID;
    }

    public void setBangGiaID(Long bangGiaID) {
        this.bangGiaID = bangGiaID;
    }

    public long getGiaTien() {
        return giaTien;
    }

    public void setGiaTien(long giaTien) {
        this.giaTien = giaTien;
    }

    public Tau getTauID() {
        return tauID;
    }

    public void setTauID(Tau tauID) {
        this.tauID = tauID;
    }

    public Ghe getGheId() {
        return gheId;
    }

    public void setGheId(Ghe gheId) {
        this.gheId = gheId;
    }

    public Ga getGaDen() {
        return gaDen;
    }

    public void setGaDen(Ga gaDen) {
        this.gaDen = gaDen;
    }

    public Ga getGaDi() {
        return gaDi;
    }

    public void setGaDi(Ga gaDi) {
        this.gaDi = gaDi;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (bangGiaID != null ? bangGiaID.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof BangGia)) {
            return false;
        }
        BangGia other = (BangGia) object;
        if ((this.bangGiaID == null && other.bangGiaID != null) || (this.bangGiaID != null && !this.bangGiaID.equals(other.bangGiaID))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entity.BangGia[ bangGiaID=" + bangGiaID + " ]";
    }
    
}
